import request from '@/config/axios'

export const getList = async (params) => {
  return await request.get({
    url: '/sessionManage/getPage',
    params
  })
}

export const createSession = async (data) => {
  return await request.post({
    url: '/sessionManage/create',
    data
  })
}

export const getSessionById = async (params) => {
  return await request.get({
    url: '/sessionManage/getById',
    params
  })
}

export const invalidSession = async (data) => {
  return await request.put({
    url: '/sessionManage/invalid',
    data
  })
}

export const getNumCode = async (params) => {
  return await request.get({
    url: '/system/numRule/getNumCode',
    params
  })
}

export const getByEventName = async () => {
  return await request.get({
    url: '/bidAnnouncement/getByEventName'
  })
}

export const getCustomList = async () => {
  return await request.get({
    url: '/customer/getList'
  })
}

export const getAllList = async () => {
  return await request.get({
    url: '/customer/getAllList'
  })
}

export const getSignUpCustomer = async (params) => {
  return await request.get({
    url: '/sessionSlaveManage/getBySessionId',
    params
  })
}

export const getActionDetail = async (params) => {
  return await request.get({
    url: '/actionHall/getActionDetail',
    params
  })
}

export const getCustomerActionDetail = async (params) => {
  return await request.get({
    url: '/actionHall/customer/getActionDetail',
    params
  })
}

export const quotePrice = async (data) => {
  return await request.put({
    url: '/actionHall/quotePrice',
    data
  })
}

export const bidCoalManageList = async () => {
  return await request.get({
    url: '/bidCoalManage/getList'
  })
}
